from django.conf.urls import url

from news import views

urlpatterns = [

    url(r'^news/$', views.NewsView.as_view()),  # 新闻列表
    url(r'^newsques/$', views.NewsQuesView.as_view()),  # 首页侧栏问答
    url(r'^newsactivies/$', views.NewsActiviesView.as_view()), # 首页侧栏活动
    url(r'^newsperson/$', views.NewsPersonView.as_view()), # 详情页侧栏个人中心
    url(r'^listtucao/$', views.ListTuCaoView.as_view()),  # 新闻中吐槽推荐列表
    url(r'^createcomment/$',views.CreateCommentView.as_view()),# 发表评论
    url(r'^news/(?P<pk>\d+)/$', views.NewsDetailCommentView.as_view()),  #{'get':'retrive'}) 新闻详情评论
    url(r'^category/$', views.CategoryView.as_view()), # 导航

]
